QT       += core gui widgets opengl
TARGET = TestOsgQt
TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS
CONFIG += c++11
INCLUDEPATH += osgQt/include

system(./genExport.bat)
QMAKE_CLEAN += osgQt/include/osgQOpenGL/Export

HEADERS += widget.h \
  osgQt/include/osgQOpenGL/osgQOpenGLWidget \
  osgQt/include/osgQOpenGL/osgQOpenGLWindow \
  osgQt/include/osgQOpenGL/OSGRenderer 

SOURCES += main.cpp \
           widget.cpp \
           osgQt/src/osgQOpenGL/CullVisitorEx.cpp \
           osgQt/src/osgQOpenGL/GraphicsWindowEx.cpp \
           osgQt/src/osgQOpenGL/osgQOpenGLWidget.cpp \
           osgQt/src/osgQOpenGL/osgQOpenGLWindow.cpp \
           osgQt/src/osgQOpenGL/OSGRenderer.cpp \
           osgQt/src/osgQOpenGL/RenderStageEx.cpp \
           osgQt/src/osgQOpenGL/StateEx.cpp
           
CONFIG(release, debug|release) {
	LIBS += -losgDB -losgViewer -losg -losgUtil -losgGA -losgText -lOpenThreads -losgEarth -losgEarthUtil
} else {
	LIBS += -losgDBd -losgViewerd -losgd -losgUtild -losgGAd -losgTextd -lOpenThreadsd -losgEarthd -losgEarthUtild
}